import Vue from 'vue'
import Router from 'vue-router'

// import RegisterPage from '../RegisterPage'
// import LoginPage from '../LoginPage'
// import ModifyPage from '../ModifyPage'

Vue.use(Router)

// 路由配置
const routes = [
  {path: '/index', component: () => import('../Index')},
  {path: '/register', component: () => import('../RegisterPage')},
  {path: '/login', component: () => import('../LoginPage')},
  {path: '/modify', component: () => import('../ModifyPage')}
]

const router = new Router({routes})

export default router
